<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>变换的工具栏</title>
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <style>
      *{
          margin: 0;
          padding: 0;
      }
        body{
            background-color: #cccccc;
        }
        .toolbar{
            max-width: 670px;
            min-width: 570px;
            width: 100%;
            margin: 150px auto;
        }
        .btn{
            width: 70px;
            height: 70px;
            background-color: #3AB09E;
            border-radius: 50%;
            font-size: 3.5em;
            text-align: center;
            color: #ffffff;
            position: relative;
            left: calc(50% - 35px);
        }
        .btn:after{
            content: '+';
        }
        .icons{
            width: 0;
            height: 36px;
            padding: 17px 10px 17px 50px;
            color: #3AB09E;
            background-color: #ffffff;
            border-radius:2em;
            margin: -70px 0 0 45%;
            overflow: hidden;
        }
        .icons li{
            width: 16%;
            display: none;
        }
        /* btn 动态样式存储*/
        .active{
            left: 26px;
            transform: rotate(45deg);
        }
        /* icons 动态样式存储*/
        .open{
            width: 80%;
            margin: -70px 0 0 5%;
            padding: 17px 10px 17px 90px;
        }
        .open li{
           display: inline-block;
        }
        .btn,.icons{
            transition:  1s cubic-bezier(0.9,-0.4,.21,3);
        }
    </style>
</head>
<body>
<div class="toolbar">
    <div class="btn "></div>
    <ul class="icons ">
        <li class="fa fa-home fa-2x"></li>
        <li class="fa fa-user fa-2x"></li>
        <li class="fa fa-star fa-2x"></li>
        <li class="fa fa-file-text fa-2x"></li>
        <li class="fa fa-paper-plane fa-2x"></li>
    </ul>
</div>
<script src="js/jquery-1.11.0.min.js"></script>
<script>
    $(".btn").click(function (e) {
        $(".btn").toggleClass("active");
        $(".icons").toggleClass("open");
    })
</script>
</body>
</html>